use std::fs::File;
use std::io::Read;
use rjvm_class_file::byte_data_reader::ByteDataReader;
use rjvm_class_file::cf_constant_info::create_constant_info;

#[test]
fn byte_data_reader_test() {
    let mut data: Vec<u8> = Vec::new();
    let _drop = File::open("C:/Users/sunjr/Desktop/ActivityMeetingPlace.class").unwrap().read_to_end(&mut data);

    let mut reader = ByteDataReader::new(&data);
    let num = reader.read_u32();
    println!("num:{}", num);

    let num = reader.read_u16();
    println!("num:{}", num);

    let num = reader.read_u16();
    println!("num:{}", num);

}